home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94a.txt
/
000044_icon-group-sender _Sat Feb 12 18:59:50 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-19
|
3KB
Received: by cheltenham.cs.arizona.edu; Wed, 16 Feb 1994 12:36:31 MST
Date: 12 Feb 94 18:59:50 GMT
From: dog.ee.lbl.gov!overload.lbl.gov!agate!usenet.ins.cwru.edu!wariat.org!kf8nh!bsa@ucbvax.Berkeley.EDU (Brandon S. Allbery)
Organization: Brandon's Linux box and AmPR node, Mentor, OH
Subject: Re: wishing for an Icon-like embedded language
Message-Id: <1994Feb12.185950.447@kf8nh.wariat.org>
References: <CL0x83.BAr@walter.bellcore.com>, <1994Feb12.032054.26100@cs.rit.edu>, <1994Feb12.142953.9522@noao.edu>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
In article <1994Feb12.142953.9522@noao.edu>, swampler@noao.edu () says:
+---------------
| In article <1994Feb12.032054.26100@cs.rit.edu>, nmw1638@cs.rit.edu (Nicolas M Williams) writes:
| |> In article <CL0x83.BAr@walter.bellcore.com> norman@flash.bellcore.com (Norman Ramsey) writes:
| |> >of anyone out there has thought about using Icon as an extension
| |> >language, or about how to identify a subset or design an extension
| |> >language with the ``flavor'' of Icon.
| |>
| One reason why Icon hasn't been embedded is because of the sophisticated syntax -
+------------->8
Ahem. Check out
#define IconCalling
in config/.../define.h. It's normally left turned off according to the
documentation, because it incurs overhead in order to support recursive calls
from C to Icon and vice versa. ---It also warns that this requires linking
the entire Icon interpreter and runtime system into the C program, so to that
extent you are correct. (Heavyweight Tcl, anyone? :-)
| an Icon parser into an application! (Hmmm, maybe someone should write an 'Icon
| Server' that can handle parsing and interpreting from multiple Icon clients...)
+------------->8
Been there, done that... except it was for Prolog, not Icon. I could probably
dig it up and change it to an Icon server if I had the time and the
inclination.
The biggest problem here is maintaining separate execution contexts for all
clients. For the Prolog one I didn't need to; it was essentially a "Prolog
database server" which arbitrated access to a common rulebase. Had I needed a
general *language* server mechanism it would have been more difficult.
++Brandon
--
Brandon S. Allbery kf8nh@kf8nh.ampr.org bsa@kf8nh.wariat.org
"MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development." ---dmeggins@aix1.uottawa.ca